
@import "chrome://thumbsdown/skin/common.css";

@namespace "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
@namespace html "http://www.w3.org/1999/xhtml";


/* by default wizard's size is fixed - override that */
wizard {
    width: auto;
    height: auto;
}

wizardpage > description:first-child,
wizardpage > hbox > description:first-child {
    margin-bottom: 1em;
}

grid > rows > row        { -moz-box-align: center; }
grid > rows > row > hbox { -moz-box-align: center; }

/* hide search icon from "non-search" textbox */
textbox[type="search"].non-search .textbox-search-icon {
    visibility: hidden;
}

hbox.center {
    -moz-box-align: center;
}

hbox.treeStatus {
    -moz-box-align: center;
    padding-left: 0.3em;
    padding-right: 1.5em;
}

button.resetScript,
button.resetDefault {
    min-width: 0px;
    -moz-margin-start: 2px;
    -moz-margin-end: 2px;
}

button.resetScript[disabled],
button.resetDefault[disabled] {
    opacity: 0.5;
}

button.resetScript {
    list-style-image: url("icons/script.png");
}

button.resetDefault {
    list-style-image: url("icons/arrow_undo.png");
}

description.warning { color: red; }

richlistbox.thumbnail-list > scrollbox { height: 6em; }

toolbarbutton.help {
    list-style-image: url("icons/help.png");
}

.spacer {
    visibility: hidden;
}

treechildren::-moz-tree-image(thumbnail_css-background-image) {
    list-style-image: url(icons/thumbnail_css-background-image.png);
}

treechildren::-moz-tree-image(thumbnail_image-map) {
    list-style-image: url(icons/thumbnail_image-map.png);
}

treechildren::-moz-tree-image(thumbnail_img) {
    list-style-image: url(icons/thumbnail_img.png);
}

.thumbnail-box {
    background-color: white;
    min-width: 128px;
    padding: 8px;
}


/* thumbnails */

#wpage_thumbnails #splitter_thumbnails { margin: 2.5em 0.5em 2.5em 0.5em; }

#tree_thumbnails > treechildren::-moz-tree-image(disabled),
#tree_thumbnails > treechildren::-moz-tree-cell-text(disabled) {
    opacity: 0.5;
}


/* linkXpath */

html|li > image {
    vertical-align: bottom;
}

html|li > image.link {
    list-style-image: url(icons/link.png);
    -moz-image-region: rect(0px, 15px, 16px, 1px);
}

html|li > image.thumbnail {
    list-style-image: url(icons/thumbnail_img.png);
    -moz-image-region: rect(0px, 15px, 16px, 0px);
    padding-left: 1px;
}

#tree_linkXpath_elem > treechildren::-moz-tree-cell-text(thumbnail) {
    font-weight: bold;
}

#tree_linkXpath_elem > treechildren::-moz-tree-image(non-thumbnail) {
    list-style-image: url(icons/tag.png);
}

#tree_linkXpath_elem > treechildren::-moz-tree-image(non-thumbnail,selected) {
    list-style-image: url(icons/link.png);
}

#tree_linkXpath_elem > treechildren::-moz-tree-image(thumbnail,selected) {
    list-style-image: url(icons/thumbnail-link.png);
}


/* images */

#wpage_images richlistbox > scrollbox { overflow-y: scroll !important; }

#wpage_images richlistbox > richlistitem {
    padding: 6px 0px;
    min-width: 128px;
    -moz-box-pack: center;
}

#wpage_images richlistbox > richlistitem.page {
    -moz-box-flex: 1;
    -moz-box-align: center;
}

#wpage_images richlistbox > richlistitem.page.loading {
    background-image: url('chrome://global/skin/icons/loading_16.png');
    background-position: center center;
    background-repeat: no-repeat;
}


/* mode */

#tree_mode_scripts > treechildren { min-height: 6em; }

#tbox_mode_filter,
#tree_mode_scripts {
    width: 25em;
}

#grid_mode_script row {
    display: none;
}

#grid_mode_script[type=direct] row.type_direct,
#grid_mode_script[type=regexp] row.type_regexp,
#grid_mode_script[type=custom] row.type_custom,
#grid_mode_script[type=wrapped] row.type_wrapped {
    display: -moz-grid-line;
}

#tree_mode_scripts > treechildren::-moz-tree-cell-text(incompatible) {
    opacity: 0.5;
}


/* script */

#grid_script row {
    display: none;
}

#grid_script row.common,
#grid_script[linkType=xpath] row.linkType_xpath,
#grid_script[type=regexp] row.type_regexp,
#grid_script[type=wrapped] row.type_wrapped {
    display: -moz-grid-line;
}
